<!--<nz-form-item *ngIf="type === 'form'" [formGroup]="parentFormGroup">-->
<!--    <nz-form-label nzRequired>所属公司</nz-form-label>-->
<!--    <nz-form-control [nzErrorTip]="errorCompanyTpl">-->
<!--        <nz-tree-select-->
<!--            [nzExpandedKeys]="expandCompanyKeys"-->
<!--            [nzNodes]="id"-->
<!--            nzShowSearch-->
<!--            [nzAllowClear]="false"-->
<!--            nzPlaceHolder="请选择所属公司"-->
<!--            [(ngModel)]="id"-->
<!--            formControlName="companyId"-->
<!--            (ngModelChange)="onCompanySelectChange($event)"-->
<!--        ></nz-tree-select>-->
<!--        <ng-template #errorCompanyTpl let-control>-->
<!--            <ng-container *ngIf="control.hasError('required')">请选择所属公司</ng-container>-->
<!--        </ng-template>-->
<!--    </nz-form-control>-->
<!--</nz-form-item>-->

<!--<div *ngIf="type === 'search'">-->
<div >
        <nz-tree-select
            [nzDropdownStyle]='{"max-height":maxHeight}'
            [nzExpandedKeys]="expandCompanyKeys"
            [nzNodes]="tree"
            nzShowSearch
            [nzAllowClear]="true"
            [nzPlaceHolder]="nzPlaceHolder"
            [(ngModel)]="id"
            (ngModelChange)="onSelectChange($event)"
        ></nz-tree-select>
</div>

<!--</div>-->
